package com.zbkj.common.request;

import com.zbkj.common.constants.Constants;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 分页公共请求对象
 * +----------------------------------------------------------------------
 * | Author:
 * +----------------------------------------------------------------------
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class PageParamRequest {

    @ApiModelProperty(value = "页码", example = Constants.DEFAULT_PAGE + "")
    private int page = Constants.DEFAULT_PAGE;

    @ApiModelProperty(value = "每页数量", example = Constants.DEFAULT_LIMIT + "")
    private int limit = Constants.DEFAULT_LIMIT;


    public PageParamRequest(Integer page, Integer limit) {
        super();
        this.page = page;
        this.limit = limit;
    }

}
